package com.cskaoyan.day2.collection._03_example;

import java.util.Date;

/**
 * @author Common-zhou
 * @since 2023-02-28 15:50
 */
public class Student {
    private String name;
    private int age;
    private int totalScore;

    private Date enterDate;

    public Student(String name, int age, int totalScore, Date enterDate) {
        this.name = name;
        this.age = age;
        this.totalScore = totalScore;
        this.enterDate = enterDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(int totalScore) {
        this.totalScore = totalScore;
    }

    public Date getEnterDate() {
        return enterDate;
    }

    public void setEnterDate(Date enterDate) {
        this.enterDate = enterDate;
    }

    @Override
    public String toString() {
        return "Student{" +
            "name='" + name + '\'' +
            ", age=" + age +
            ", totalScore=" + totalScore +
            ", enterDate=" + enterDate +
            '}';
    }
}
